cmake_minimum_required(VERSION 3.5.1)
project(bezier_opt)

find_package(catkin REQUIRED COMPONENTS
  bezier
  roscpp
  std_msgs
)
find_package(Eigen3 REQUIRED)

catkin_package(
        INCLUDE_DIRS include
        LIBRARIES bezier_opt
        CATKIN_DEPENDS roscpp std_msgs bezier
)

include_directories(
        include
        ${catkin_INCLUDE_DIRS}
        ${Eigen3_INCLUDE_DIRS}
        "/usr/local/include"
)
link_directories("/usr/local/lib")

set(CMAKE_CXX_FLAGS "-std=c++11 ${CMAKE_CXX_FLAGS} -O3 -Wall")

add_library(bezier_opt
        src/trajectory_generator.cpp)

target_link_libraries(bezier_opt
        ${catkin_LIBRARIES}
        qpOASES)